package com.vgooo.client.ui;

import com.vgooo.util.DebugTools;

import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.ImageSwitcher;

public class VGImageSwitcher extends ImageSwitcher {
	
	
	private final static String className = "VGImageSwitcher";
	
	private GestureDetector detector ;
	
	

	public void setDetector(GestureDetector detector) {
		this.detector = detector;
	}

	public VGImageSwitcher(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	public VGImageSwitcher(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	
	
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		// TODO Auto-generated method stub
		DebugTools.log(className, " onTouchEvent()" ) ;
		return detector.onTouchEvent(event);
	}

}
